<template>
  <div
    class="careTip"
    :style="{'--height':height}"
  >
    <el-row
      :gutter="20"
      class="flexBox"
    >
      <el-col
        :span="5"
        class="titleBox"
      >
        <div class="leftText">{{title}}</div>
      </el-col>
      <el-col
        :span="19"
        class="content"
      >
        <slot></slot>
      </el-col>
    </el-row>
  </div>
</template>

<script>
  export default {
    name: 'mpannel',
    props: {
      title: String,
      height: {
        type: String,
        default: '60px'
      }
    },
    data () {
      return {

      }
    },
    computed: {},
    watch: {},
    methods: {

    },
    created () {

    },
    mounted () {

    },
  }
</script>
<style scoped lang='scss'>
.careTip {
  width: 100%;
  display: block;
  background: #fff;
  min-height: var(--height);
  border-radius: 8px;
  padding-top: 10px;
  .flexBox {
    width: 100%;
    display: flex;
    align-items: flex-start;
    .titleBox {
      .leftText {
        font-size: 14px;
        font-weight: bold;
        // max-width: 120px;
      }
    }
    .content {
      padding-top: 10px;
    }
  }
}
</style>
